<?php

    $request_time       = microtime(true);
    $pre_render_time    = 0;
    $filter_time        = 0;
    $pre_filter_time    = 0;
    $prepare_time       = 0;

    define('DS', DIRECTORY_SEPARATOR);
    define('ROOT', (dirname(dirname(__FILE__))));
    define('APP_DIR', basename(dirname((__FILE__))));
    define('CAKE_CORE_INCLUDE_PATH', ROOT);
    define('WEBROOT_DIR', 'webroot');
    define('WWW_ROOT', dirname(__FILE__) . DS . WEBROOT_DIR . DS);
    define('APP_PATH', ROOT . DS . APP_DIR . DS);
    define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
    define('X_VERSION', file_get_contents(APP_PATH.'ver.txt'));

    define('X_HTTP_SCHEMA', isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https' : 'http');

    require_once APP_PATH.'config'.DS.'config.php';

    require_once CORE_PATH . 'cake' . DS . 'bootstrap.php';

?>